#!D:/Python27/python
# Filename:str_method.py

name='Swaroop'#This is a string object

if name.startswith('Swa'):
    print 'Yes,the string starts with "Swa"'

if 'a' in name:
    print 'Yes,it contains the String "a"'

if name.find('war') != -1:
    print 'Yes,it contains the string "War"'

delimiter = '_*_'
mylist = ['Brazil','Russia','India','China']
print delimiter.join(mylist)
